package com.smxy.daydayup.service.serviceImpl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.smxy.daydayup.pojo.Ruler;
import com.smxy.daydayup.mapper.RulerMapper;
import com.smxy.daydayup.service.RulerService;
/**
  * @team daydayup
  * @time 2021-12-06 21:45
  */
@Service
public class RulerServiceImpl implements RulerService{

    @Resource
    private RulerMapper rulerMapper;

    @Override
    public int deleteByPrimaryKey(Long rulerId) {
        return rulerMapper.deleteByPrimaryKey(rulerId);
    }

    @Override
    public int insert(Ruler record) {
        return rulerMapper.insert(record);
    }

    @Override
    public int insertSelective(Ruler record) {
        return rulerMapper.insertSelective(record);
    }

    @Override
    public Ruler selectByPrimaryKey(Long rulerId) {
        return rulerMapper.selectByPrimaryKey(rulerId);
    }

    @Override
    public int updateByPrimaryKeySelective(Ruler record) {
        return rulerMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Ruler record) {
        return rulerMapper.updateByPrimaryKey(record);
    }

}
